﻿<?php
/**
 * Acadame Template - tpl_header.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_header = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2007 iChoze Internet Solutions http://ichoze.com
 * @copyright Portions Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
 */
?>


<?php
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {

}
?>


<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>

<div id="top">
	<div class="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
	<div class="bantou"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir('bantou.jpg', DIR_WS_TEMPLATE, $current_page_base,'images'). '/bantou.jpg', '广州好帮手生活配送中心') . '</a>'; ?></div>
	<div class="topmenu"><?php echo zen_image($template->get_template_dir("logo_1.gif", DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . 'logo_1.gif', ''); ?>
	  	
		<a href="<?php echo zen_href_link(FILENAME_CONTACT_US);?>">联系我们</a><?php echo zen_image($template->get_template_dir("logo_1.gif", DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . 'logo_6.gif', ''); ?>
		<a href="<?php echo zen_href_link(FILENAME_ABOUT_US);?>">关于我们</a>
	</div>
</div>

<div id="menubar">
  <div class="menu">
  	<a  class="index" href="<?php echo HTTP_SERVER . DIR_WS_CATALOG;?>">首页</a>
	<a href="<?php echo zen_href_link(FILENAME_ABOUT_US, '', 'SSL')?>">关于我们</a>
	<a href="<?php echo zen_href_link(FILENAME_MEDIA_REPORT, '', 'SSL')?>">媒体报导</a>
	<a href="<?php echo zen_href_link(UN_FILENAME_WISHLIST, '', 'SSL')?>">我的收藏</a>
	<a href="<?php echo zen_href_link(FILENAME_HEALTHY_MENU, '', 'SSL')?>">营养菜谱</a>
    <a href="<?php echo zen_href_link(FILENAME_BUY_TOGETHER, '', 'SSL')?>">团购活动</a>
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL')?>">购物车</a>
	<a href="<?php echo zen_href_link(FILENAME_HELP_CENTER, '', 'SSL')?>">帮助中心</a>
	<a href="<?php echo zen_href_link(FILENAME_GUEST_BOOK, '', 'SSL')?>">留言板</a>
  </div>
</div>

<div id="SearchBar">
	<?php $content = "";
		  $content .= '<div id="remindTime"><strong>'.TEXT_REMIND_BOOKTIME.'</strong></div>';
		  $content .= '<div id="SearchBarinput" class="search">';
		  $content .= zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
		  $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
		  $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
		  
		  $content .= '<lable>关键字</lable>';
		
		  if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
		    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
		    $content .= '<a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
		  } else {
		    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '<input type="submit" value="' . HEADER_SEARCH_BUTTON . '"  />';
		    $content .= '<a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
		  }
		
		  $content .= "</form>";
		  $content .= '</div>';
		  echo $content;
  ?>

</div>

<?php } ?>


